
<template>
	<view>
		distance page {{longitude}}-{{latitude}}
	</view>
</template>

<script>
	export default {
		data() {
			return {
				longitude: 1,
				latitude: 1
			}
		},
		onLoad() {
			uni.getLocation({
				type: 'wgs84',
				success: function (res) {
					console.log('当前位置的经度：' + res.longitude);
					console.log('当前位置的纬度：' + res.latitude);
					this.longitude = res.longitude;
					this.latitude = res.latitude;
				}
			});
		},
		methods: {
			
		}
	}
</script>

<style>

</style>
